<template>
  <div>
    <el-row>
      <!--<el-col :span="14">
        <div class="cropper-app">
          <el-form :model="formValidate" :rules="ruleValidate" ref="formValidate" label-width="100px" class="demo-ruleForm">
            <el-form-item label="图片上传" prop="mainImage">
              <div class="list-img-box">
                <div v-if="formValidate.mainImage !== ''">
                  <img :src="formValidate.mainImage" style='width:300px;height:150px' alt="自定义图片">
                </div>
                <div v-else class="upload-btn" style="height: 120px;" @click="uploadPicture('flagImg')">
                  <i class="el-icon-plus" style="font-size: 30px;"></i>
                  <span>图片设置</span>
                </div>
              </div>
              <input type="hidden" v-model="formValidate.mainImage" placeholder="请添加图片">
            </el-form-item>
          </el-form>
          <el-dialog
            title="裁切图片"
            :visible.sync="cropperModel"
            width="950px"
            center
          >
            <cropper-image
              :Name="cropperName"
              @uploadImgSuccess = "handleUploadSuccess"
              ref="child">
            </cropper-image>
          </el-dialog>
          <el-dialog
            title="查看大图片"
            :visible.sync="imgVisible"
            center>
            <img :src="imgName" v-if="imgVisible" style="width: 100%" alt="查看">
          </el-dialog>
        </div>
      </el-col>-->
      <el-col :span="24">
        <div>
            <CanvasImage id="mycanvas" width="940" height="570"></CanvasImage>
        </div>
      </el-col>
    </el-row>
  </div>

</template>

<script>
  import CanvasImage from "@/components/CanvasImage";
  export default {
    name: "CanvasImage",
    components: {CanvasImage},
    data () {
      return {

      }
    },
    methods: {

    }
  }
</script>
<style scoped>

</style>
